# Contributor: Sebastian Wolf <fatmike303 at googlemail dot com>

pkgname=advancemenu
pkgver=2.7
pkgrel=1
pkgdesc="Emulator frontend with sound and animated previews of your games"
arch=('i686' 'x86_64')
url="http://advancemame.sourceforge.net"
optdepends=('advancemame' 'sdlmame' 'sdlmess')
license=('GPL')
source=(http://downloads.sourceforge.net/sourceforge/advancemame/$pkgname-$pkgver.tar.gz)
md5sums=('aa2dc9fb1f795420c92af8cc4dd5d938')

build() {
	cd $srcdir/$pkgname-$pkgver
	./configure --prefix=/usr || return 1
	make || return 1
}

package() {
	cd $srcdir/$pkgname-$pkgver
	# Binary
	install -D -m755 obj/menu/linux/blend/advmenu $pkgdir/usr/bin/advmenu
	# Manpage
	install -D -m644 doc/advmenu.1 $pkgdir/usr/share/man/man1/advmenu.1
	# Documentation
	install -D -m644 doc/advmenu.txt $pkgdir/usr/share/doc/advmenu/advmenu.txt
}
